package cn.chencq.spider.novel.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.chencq.spider.novel.utils.ParseUtils;

@RestController
public class HelloController {

	@RequestMapping("/")
    public String index() {
        return "Hello Spring Boot 2.0!";
    }
	
	
	@RequestMapping("/book/list")
    public String bookList(int pageNo, int pageSize) {
      return  ParseUtils.queryByPage("Book", pageNo, pageSize).toJSONString();
    }
	
}
